package com.ukao.steward.adapter;

import android.content.Context;
import android.widget.TextView;

import com.ukao.steward.R;
import com.ukao.steward.base.ListBaseAdapter;
import com.ukao.steward.base.SuperViewHolder;
import com.ukao.steward.bean.TodayEarningBean;
import com.ukao.steward.util.CheckUtils;

import java.util.List;


public class ToDayListAdapter extends ListBaseAdapter<TodayEarningBean.IncomeListBean> {




    public ToDayListAdapter(Context context, List<TodayEarningBean.IncomeListBean> mDataList) {
        super(context, mDataList);
    }

    @Override
    public int getLayoutId() {
        return R.layout.adapter_today_list;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, final int position) {
        TodayEarningBean.IncomeListBean item = mDataList.get(position);
        TextView       takeName=holder.getView(R.id.takeName);
        TextView       reward=holder.getView(R.id.reward);
        takeName.setText(item.getName());
        reward.setText(CheckUtils.isEmptyNumber(item.getTotal()));
    }


}
